import mime from "mime";

export const getFileTye = (fileName: string) => {
  return mime.getType(fileName.split(".")?.slice(-1)?.[0] || "image/png")?.split("/")?.[0];
};
